<%@ page language="java" import="java.util.*,java.text.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
    Calendar now = Calendar.getInstance();//建立日期实例now
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy'年'MM'月'dd'日'");
    String today = sdf.format(now.getTime());//建立日期串s_today
    pageContext.setAttribute("today", today);
%>
<html>
    <head>
        <base href="<%=basePath%>">
        <link href="../admin.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <table class="middle"
               style="background-color:#F1F1F1;border-collapse:collapse;　border-spacing:0px;">
            <tr>
                <td height=100 background="img/top_r0.jpg"
                    style="background-size: 100%;background-repeat:no-repeat;"></td>
            </tr>
            <tr>
                <td>
                    <img src="img/top_r2.jpg"/>今天是${pageScope.today }
                    <c:choose>
                        <c:when
                                test="${(empty employeeid)==false}"> ${employeeid}，欢迎光临！
                            <a href="admin/logout">注销</a>
                        </c:when>
                        <c:when
                                test="${(empty employeeid)==true}"> 请先登录！
                            <a href="admin/login.jsp">登录</a>
                        </c:when>
                    </c:choose>
                </td>
            </tr>
            <tr>
                <td>
                    <a href="admin/booksearch"><img src="img/adin_r1.gif"/></a>
                </td>
                <%--用户管理--%>
                <td>
                    <a href="admin/usersearch"><img src="img/adin_r2.gif"/> </a>
                </td>
                <%--订单管理--%>
                <td>
                    <a href="/order/orderSearch"><img src="img/adin_r3.gif"/> </a>
                </td>
                <td>
                    <a href="admin/notessearch"><img src="img/adin_r4.gif"/> </a>
                </td>
                <td>
                    <a href="admin/employeesearch"><img src="img/adin_r5.gif"/> </a>
                </td>
                <td>
                    <a href="admin/publishersearch"><img src="img/adin_r6.gif"/> </a>
                </td>
            </tr>
        </table>
        <div class="middle">
            <div style="background-color:#fc7500;width:1250px;height:20px;margin-top:0;padding:0"></div>
        </div>
    </body>
</html>











